﻿#include<iostream>
using namespace std;

int main() {
	int studentId[5]{ 10001,10002,10003,10004,10005 };
	int* ptrStudentId[5];

	int studentIdA[2][2]{
		{10001,10002},
		{20001,20002}
	};
	int* ptrstudentIdA[2][2];

	for (int x = 0; x < 5; x++) {
		ptrStudentId[x] = &studentId[x];
		cout << "内存地址：" << ptrStudentId[x] << "值" << *ptrStudentId[x] << endl;
	}
	cout << endl;

	for (int i = 0; i < 2; i++) {
		for (int j = 0; j < 2; j++) {
			ptrstudentIdA[i][j] = &studentIdA[i][j];
			cout << "内存地址：" << ptrstudentIdA[i][j] << "值" << *ptrstudentIdA[i][j] << endl;
		}
	}
}